package com.learn.example.userservice.service;

import com.learn.example.userservice.model.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description:
 * @author: lfc
 * @version: 2020/5/21 11:30
 */
@FeignClient(value="order-service")
public interface FiegnOrderService {

    @GetMapping("/order/{userid}/info/")
    OrderInfo getOrderInfoByUser(@PathVariable("userid") String userId);
}
